<?php use_javascript('global') ?>
<?php include_partial('global/userMessages', array('flash_name' => 'edit_farm_errs')) ?>
<form id='main_form' method='post' action='<?php echo url_for("@edit_farm?farm_id={$farm['farm_id']}") ?>' enctype='application/x-www-form-urlencoded'>
<div class="static">
<div class="formcontain">
<div class="farmform">

<!-- CONTACT INFORMATION -->

<h1>Contact Information</h1>
<table class='tbl' border="0">
  <tr>
    <td class='lbl req' ><p>First Name</p></td>
	<td><input type="text" class='txt req' name='contact_fn' maxlength="50" value="<?php echo $farm['contact_fn'] ?>" /></td>
<td class='lbl r'><p>Mobile</p></td>
	<td><input name='contact_mobile' type="text" class='txt'  maxlength="15" value="<?php echo $farm['contact_mobile'] ?>" /></td>
</tr>

 <tr>
    <td class='req lbl'><p>Last Name</p></td>
	<td><input name='contact_ln' type="text" class='txt req' maxlength="50" value="<?php echo $farm['contact_ln'] ?>"/></td>
<td class='lbl r'><p>Email</p></td>
	<td><input name='contact_email' type="text" class='txt' maxlength="50" value="<?php echo $farm['contact_email'] ?>" /></td>
</tr>

 <tr>
    <td class='lbl'><p>Phone</p></td>
	<td><input name='contact_phone' type="text" class='txt' maxlength="15" value="<?php echo $farm['contact_phone'] ?>"/></td>

</tr>
</table>

<!-- FARM INFORMATION -->


<h1>Farm Information</h1>
<table class='tbl' border="0">
  <tr>
    <td class='req lbl'><p>Farm Name</p></td>
	<td><input name='name' type="text" class='txt req' maxlength="50" value="<?php echo $farm['name'] ?>" /></td>
<td class='lbl r'><p>Farm Zip</p></td>
	<td><input name='zip' type="text" class='txt' maxlength="5" value="<?php echo $farm['zip'] ?>" /></td>
</tr>

 <tr>
    <td class='lbl'><p>Farm Address</p></td>
	<td><input name='address' type="text" class='txt' maxlength="50" value="<?php echo $farm['address'] ?>" /></td>
<td class='lbl r'><p>Farm County</p></td>
	<td><input name='county' type="text" class='txt' maxlength="25" value="<?php echo $farm['county'] ?>" /></td>
</tr>

 <tr>
    <td class='lbl'><p>Farm City</p></td>
	<td><input name='city' type="text" class='txt' maxlength="25" value="<?php echo $farm['city'] ?>" /></td>
<td class='lbl r'><p>Farm Basin</p></td>
	<td><?php include_partial('basinOptions', array('basin' => $farm['basin'])) ?></td>
</tr>

 <tr>
    <td class='lbl'><p>Farm State</p></td>
	<td><?php include_partial('stateOptions', array('state' => $farm['state'])) ?></td>
<td class='lbl r'><p>Farm HUC</p></td>
	<td><input name='huc' maxlength="8" type="text" class='txt' value="<?php echo $farm['huc'] ?>" /></td>
</tr>
</table>

</div>
</div>

</div>
<p id='form_btns'><input id='submit_btn' type='submit' value='Update' /></p>
<input type='hidden' value="<?php echo $farm['farm_id'] ?>" name='farm_id' />
</form>